From b850b9b5730eae9ad058bf17f5b760183a021a90 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 25 Mar 2011 08:57:28 +0000 Subject: [PATCH] xentrace: print calculated numbers in calculate_tbuf_size() Print number of pages to allocate for per-cpu tracebuffer and metadata to ease debugging when allocation fails. Signed-off-by: Olaf Hering --- xen/common/trace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/trace.c b/xen/common/trace.c index e290cdce17..cebc5d48d8 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -127,6 +127,8 @@ static int calculate_tbuf_size(unsigned int pages) t_info_words = num_online_cpus() * pages + t_info_first_offset; t_info_bytes = t_info_words * sizeof(uint32_t); t_info_pages = PFN_UP(t_info_bytes); + printk(XENLOG_INFO "xentrace: requesting %u t_info pages for %u trace pages on %u cpus\n", + t_info_pages, pages, num_online_cpus()); return pages; } -- 2.30.2